package com.warmheart.base.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * 
 * @ClassName: SysConfig
 * @Description: 系统配置
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
@Configuration
@PropertySource(factory = YamlPropertySourceFactory.class, value = "classpath:sys-config.yml")
@ConfigurationProperties(prefix = "sys")
public class SysConfig {

    private Integer duplicateOnclickTime = 2;

    private Integer sessionExpire = 1296000;

    private Integer secretMangerExpire = 2592000;

    private Log log = new Log();

    /**
     * 
     * @ClassName: Log
     * @Description: 日志
     * @author ZhangJianyang
     * @date 2025-06-16 09:37:02
     *
     */
    public class Log {

        /**
         * 参数
         */
        private Boolean param = false;

        /**
         * 响应
         */
        private Boolean result = false;

        public Boolean getParam() {
            return param;
        }

        public void setParam(Boolean param) {
            this.param = param;
        }

        public Boolean getResult() {
            return result;
        }

        public void setResult(Boolean result) {
            this.result = result;
        }
    }

    public Integer getDuplicateOnclickTime() {
        return duplicateOnclickTime;
    }

    public void setDuplicateOnclickTime(Integer duplicateOnclickTime) {
        this.duplicateOnclickTime = duplicateOnclickTime;
    }

    public Integer getSessionExpire() {
        return sessionExpire;
    }

    public void setSessionExpire(Integer sessionExpire) {
        this.sessionExpire = sessionExpire;
    }

    public Integer getSecretMangerExpire() {
        return secretMangerExpire;
    }

    public void setSecretMangerExpire(Integer secretMangerExpire) {
        this.secretMangerExpire = secretMangerExpire;
    }

    public Log getLog() {
        return log;
    }

    public void setLog(Log log) {
        this.log = log;
    }
}
